package com.itsu.mysql.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.itsu.interfaces.entity.TestResult;
import com.itsu.interfaces.service.ScoreService;
import com.itsu.interfaces.service.TestResultService;
import com.itsu.mysql.mappers.ScoreMapper;
import com.itsu.mysql.mappers.TestResultMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class TestResultServiceImpl implements TestResultService {

    @Autowired
    TestResultMapper testResultMapper;


    @Override
    public TestResult findByRid(Long id) {
        return testResultMapper.selectOne(Wrappers.lambdaQuery(TestResult.class).eq(TestResult::getId, id));
    }
}
